OnEvent.add(window, "beforeunload", function() {
	OnEvent.clear();
});

OnEvent.add(window, "load", function() {
	smartFocus();
	restrictionNotifier();
});
